package com.stylefeng.guns.modular.biz.warpper;

import com.stylefeng.guns.common.constant.factory.ConstantFactory;
import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;

import java.util.Map;

/**
 * 残片列表的包装类
 * @author zhouh
 * @date 2017年4月5日22:56:24
 */
public class WorkNoticeWarpper extends BaseControllerWarpper {

    public WorkNoticeWarpper(Object list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("statusValue", ConstantFactory.me().getWorkNoticeStatusName((Integer) map.get("status")));
        map.put("workTypeValue", ConstantFactory.me().getWorkNoticeTypeName((Integer) map.get("workType")));
    }

}
